GATE Exam  >  GATE Questions  >  {printf(“%d%d%d%d%d”, ‘ \n ... Start Learning for Free
{
printf(“%d%d%d%d%d”, ‘ \n ‘ ,printf(“\0”),printf(“\n”),’ \0 ‘ , ‘ \b ‘ );
}
What will be printed by this above code?
  • a)
    100108
  • b)
    0
  • c)
    10010
  • d)
    error
Correct answer is option 'A'. Can you explain this answer?
Verified Answer
{printf(“%d%d%d%d%d”, ‘ \n ‘ ,printf(“\0...
ASCII value of ‘ \n ‘ is 10.that is printed.
printf(“\0”) // it prints nothing ,only returns zero. This returned zero value is printed.
printf(“\n” // it prints nothing ,only returns one ,This returned 1 is printed
‘ \0 ‘. //ASCII value of this null character is zero.that is printed .
‘ \b ‘ // ASCII value of this backspace escape sequence is 8,that is printed.
View all questions of this test
Explore Courses for GATE exam
{printf(“%d%d%d%d%d”, ‘ \n ‘ ,printf(“\0”),printf(“\n”),’ \0 ‘ , ‘ \b ‘ );}What will be printed by this above code?a)100108b)0c)10010d)errorCorrect answer is option 'A'. Can you explain this answer?
Question Description
{printf(“%d%d%d%d%d”, ‘ \n ‘ ,printf(“\0”),printf(“\n”),’ \0 ‘ , ‘ \b ‘ );}What will be printed by this above code?a)100108b)0c)10010d)errorCorrect answer is option 'A'. Can you explain this answer? for GATE 2024 is part of GATE preparation. The Question and answers have been prepared according to the GATE exam syllabus. Information about {printf(“%d%d%d%d%d”, ‘ \n ‘ ,printf(“\0”),printf(“\n”),’ \0 ‘ , ‘ \b ‘ );}What will be printed by this above code?a)100108b)0c)10010d)errorCorrect answer is option 'A'. Can you explain this answer? covers all topics & solutions for GATE 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for {printf(“%d%d%d%d%d”, ‘ \n ‘ ,printf(“\0”),printf(“\n”),’ \0 ‘ , ‘ \b ‘ );}What will be printed by this above code?a)100108b)0c)10010d)errorCorrect answer is option 'A'. Can you explain this answer?.
Solutions for {printf(“%d%d%d%d%d”, ‘ \n ‘ ,printf(“\0”),printf(“\n”),’ \0 ‘ , ‘ \b ‘ );}What will be printed by this above code?a)100108b)0c)10010d)errorCorrect answer is option 'A'. Can you explain this answer? in English & in Hindi are available as part of our courses for GATE. Download more important topics, notes, lectures and mock test series for GATE Exam by signing up for free.
Here you can find the meaning of {printf(“%d%d%d%d%d”, ‘ \n ‘ ,printf(“\0”),printf(“\n”),’ \0 ‘ , ‘ \b ‘ );}What will be printed by this above code?a)100108b)0c)10010d)errorCorrect answer is option 'A'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of {printf(“%d%d%d%d%d”, ‘ \n ‘ ,printf(“\0”),printf(“\n”),’ \0 ‘ , ‘ \b ‘ );}What will be printed by this above code?a)100108b)0c)10010d)errorCorrect answer is option 'A'. Can you explain this answer?, a detailed solution for {printf(“%d%d%d%d%d”, ‘ \n ‘ ,printf(“\0”),printf(“\n”),’ \0 ‘ , ‘ \b ‘ );}What will be printed by this above code?a)100108b)0c)10010d)errorCorrect answer is option 'A'. Can you explain this answer? has been provided alongside types of {printf(“%d%d%d%d%d”, ‘ \n ‘ ,printf(“\0”),printf(“\n”),’ \0 ‘ , ‘ \b ‘ );}What will be printed by this above code?a)100108b)0c)10010d)errorCorrect answer is option 'A'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice {printf(“%d%d%d%d%d”, ‘ \n ‘ ,printf(“\0”),printf(“\n”),’ \0 ‘ , ‘ \b ‘ );}What will be printed by this above code?a)100108b)0c)10010d)errorCorrect answer is option 'A'. Can you explain this answer? tests, examples and also practice GATE tests.
Explore Courses for GATE exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev